package com.sx.dao;

import com.sx.domain.PromotionAd;
import com.sx.domain.PromotionAdVo;

import java.util.List;

public interface PromotionAdMapper {

    /**
     * 分页查询广告信息
     */

    public List<PromotionAd> findPromotionAdByPage();


    /**
     * 新增广告上线和下线
     */
    public void updatePromotionAdStatus(PromotionAd promotionAd);

    /**
     * 新建和修改广告
     */
    public void savePromotionAd(PromotionAd promotionAd);
    public void updatePromotionAd(PromotionAd promotionAd);

    /**
     * 修改回显广告接口
     */
    public PromotionAd updatePromotionAdById(Integer id);
}
